{% extends "base.html" %}
{% block content %}
<div id="content">
    {% for coll in object_list %}
        {% ifchanged coll.year %}
        <h1 class="year">{{ coll.year }}</h1>
        {% endifchanged %}
    <div class="collection">
            <h2>{{  coll.title }}</h2>
            <div class="img-holder">
                {% for img in coll.images %}
            	    <a href="{{ MEDIA_URL }}{{ img.img }}" rel="gallery"><img src="{{ MEDIA_URL }}{{ img.img }}" alt=""/></a>
                {%  endfor %}
            </div>
        </div>
    {%  endfor %}
</div>
{% endblock %}